package com.king.headline.beans;

import android.text.TextUtils;

/**
 * Created by king on 2015/12/2.
 */

public class UserInfo {
    public String apikey;//当前用户标识
    public String chatHeadurl;//头像地址
    public String encyptdId;//用户Id
    public String nickname;//昵称
    public String telephone;//电话号
    public boolean isSetPassWord;//是否设置过密码
    public String qqJson;
    public String wechatJson;
    public String weiboJson;
    public  String getPhoneNumber(){
        String maskNumber="";
        if (!TextUtils.isEmpty(telephone)&&telephone.length()>8) {
            maskNumber = telephone.substring(0, 3) + "****" + telephone.substring(7, telephone.length());
        }
        return maskNumber;
    }
}

